package com.cdqidi.core.weixinmanager.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 解绑日志
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_wx_unbind_log")
public class UnbindLog extends Model<UnbindLog> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "log_id", type = IdType.ASSIGN_ID)
    private String logId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 用户标识:用户的标识，对当前公众号唯一
     */
    @TableField("open_id")
    private String openId;
    /**
     * 手机号码
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 解绑时间
     */
    @TableField("un_bind_time")
    private LocalDateTime unBindTime;
    /**
     * 公众号
     */
    @TableField("appid")
    private String appId;

    public void freeData() {
        this.logId = null;
        this.userId = null;
        this.userName = null;
        this.openId = null;
        this.mobile = null;
        this.unBindTime = null;
        this.appId = null;
    }

}
